home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-05-01 | 9.6 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue May 1 12:00:00 1990, modified Tue May 1 12:00:00 1990, creator 'MPS ', type ASCII, 9146 bytes "UMAFailure.h" , at 0x243a 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 55 4d 41 46 61 69 | 6c 75 72 65 2e 68 00 00 |..UMAFai|lure.h..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 23 ba 00 | 00 01 ac a2 63 63 00 a2 |.....#..|....cc..|
|00000060| 63 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |cc......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 78 76 00 00 |........|....xv..|
|00000080| 2f 2a 5b 61 2d 2c 62 6f | 64 79 2b 2c 68 2d 2c 6f |/*[a-,bo|dy+,h-,o|
|00000090| 3d 31 30 30 2c 72 2b 2c | 72 65 63 2b 2c 74 3d 34 |=100,r+,|rec+,t=4|
|000000a0| 2c 75 2b 2c 23 2b 2c 6a | 3d 32 30 2f 35 37 2f 31 |,u+,#+,j|=20/57/1|
|000000b0| 24 2c 6e 2d 5d 2a 2f 0d | 2f 2a 20 55 46 61 69 6c |$,n-]*/.|/* UFail|
|000000c0| 75 72 65 2e 70 20 2a 2f | 0d 2f 2a 20 43 6f 70 79 |ure.p */|./* Copy|
|000000d0| 72 69 67 68 74 20 a9 20 | 31 39 38 35 2d 31 39 39 |right . |1985-199|
|000000e0| 30 20 62 79 20 41 70 70 | 6c 65 20 43 6f 6d 70 75 |0 by App|le Compu|
|000000f0| 74 65 72 2c 20 49 6e 63 | 2e 20 20 41 6c 6c 20 72 |ter, Inc|. All r|
|00000100| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 20 |ights re|served. |
|00000110| 2a 2f 0d 0d 2f 2a 0d 09 | 09 09 09 54 20 48 20 45 |*/../*..|...T H E|
|00000120| 20 4f 20 52 20 59 20 20 | 4f 20 46 09 20 4f 20 50 | O R Y |O F. O P|
|00000130| 20 45 20 52 20 41 20 54 | 20 49 20 4f 20 4e 0d 0d | E R A T| I O N..|
|00000140| 09 54 68 69 73 20 75 6e | 69 74 20 69 6d 70 6c 65 |.This un|it imple|
|00000150| 6d 65 6e 74 73 20 74 68 | 65 20 4d 61 63 41 70 70 |ments th|e MacApp|
|00000160| 20 66 61 69 6c 75 72 65 | 20 6d 65 63 68 61 6e 69 | failure| mechani|
|00000170| 73 6d 2e 0d 0d 09 54 68 | 65 20 66 61 69 6c 75 72 |sm....Th|e failur|
|00000180| 65 20 6d 65 63 68 61 6e | 69 73 6d 20 69 73 20 62 |e mechan|ism is b|
|00000190| 75 69 6c 74 20 61 72 6f | 75 6e 64 20 65 78 63 65 |uilt aro|und exce|
|000001a0| 70 74 69 6f 6e 20 68 61 | 6e 64 6c 65 72 73 2e 09 |ption ha|ndlers..|
|000001b0| 41 6e 20 65 78 63 65 70 | 74 69 6f 6e 0d 09 68 61 |An excep|tion..ha|
|000001c0| 6e 64 6c 65 72 20 69 73 | 20 61 20 72 6f 75 74 69 |ndler is| a routi|
|000001d0| 6e 65 2c 20 67 65 6e 65 | 72 61 6c 6c 79 20 6c 6f |ne, gene|rally lo|
|000001e0| 63 61 6c 20 74 6f 20 73 | 6f 6d 65 20 6f 74 68 65 |cal to s|ome othe|
|000001f0| 72 20 72 6f 75 74 69 6e | 65 2c 20 74 68 61 74 20 |r routin|e, that |
|00000200| 69 73 0d 09 63 61 6c 6c | 65 64 20 77 68 65 6e 20 |is..call|ed when |
|00000210| 61 20 66 61 69 6c 75 72 | 65 20 6f 63 63 75 72 73 |a failur|e occurs|
|00000220| 20 61 6e 64 20 74 61 6b | 65 73 20 61 63 74 69 6f | and tak|es actio|
|00000230| 6e 20 74 6f 20 68 61 6e | 64 6c 65 20 74 68 65 20 |n to han|dle the |
|00000240| 66 61 69 6c 75 72 65 2e | 0d 09 41 6e 20 65 78 63 |failure.|..An exc|
|00000250| 65 70 74 69 6f 6e 20 68 | 61 6e 64 6c 65 72 20 69 |eption h|andler i|
|00000260| 73 20 6f 66 20 74 68 65 | 20 66 6f 72 6d 0d 0d 09 |s of the| form...|
|00000270| 50 52 4f 43 45 44 55 52 | 45 20 45 78 63 65 70 74 |PROCEDUR|E Except|
|00000280| 69 6f 6e 48 61 6e 64 6c | 65 72 20 28 65 72 72 6f |ionHandl|er (erro|
|00000290| 72 3a 20 4f 53 45 72 72 | 3b 20 6d 65 73 73 61 67 |r: OSErr|; messag|
|000002a0| 65 3a 20 4c 4f 4e 47 49 | 4e 54 29 3b 0d 0d 09 77 |e: LONGI|NT);...w|
|000002b0| 68 65 72 65 20 65 72 72 | 6f 72 20 69 73 20 74 68 |here err|or is th|
|000002c0| 65 20 65 72 72 6f 72 20 | 74 68 61 74 20 63 61 75 |e error |that cau|
|000002d0| 73 65 64 20 74 68 65 20 | 66 61 69 6c 75 72 65 2c |sed the |failure,|
|000002e0| 20 61 6e 64 20 6d 65 73 | 73 61 67 65 20 69 64 65 | and mes|sage ide|
|000002f0| 6e 74 69 66 69 65 73 0d | 09 74 68 65 20 65 72 72 |ntifies.|.the err|
|00000300| 6f 72 20 6d 65 73 73 61 | 67 65 20 74 68 61 74 20 |or messa|ge that |
|00000310| 6d 61 79 20 62 65 20 64 | 69 73 70 6c 61 79 65 64 |may be d|isplayed|
|00000320| 2e 20 20 43 6f 6e 73 69 | 64 65 72 20 61 20 72 6f |. Consi|der a ro|
|00000330| 75 74 69 6e 65 20 74 68 | 61 74 20 6f 70 65 6e 73 |utine th|at opens|
|00000340| 0d 09 61 20 66 69 6c 65 | 2c 20 72 65 61 64 73 20 |..a file|, reads |
|00000350| 69 74 73 20 63 6f 6e 74 | 65 6e 74 73 2c 20 61 6e |its cont|ents, an|
|00000360| 64 20 63 6c 6f 73 65 73 | 20 74 68 65 20 66 69 6c |d closes| the fil|
|00000370| 65 2e 20 20 49 66 20 61 | 20 66 61 69 6c 75 72 65 |e. If a| failure|
|00000380| 20 6f 63 63 75 72 65 64 | 0d 09 77 68 69 6c 65 20 | occured|..while |
|00000390| 72 65 61 64 69 6e 67 20 | 74 68 65 20 66 69 6c 65 |reading |the file|
|000003a0| 2c 20 61 6e 20 65 78 63 | 65 70 74 69 6f 6e 20 68 |, an exc|eption h|
|000003b0| 61 6e 64 6c 65 72 20 77 | 6f 75 6c 64 20 62 65 20 |andler w|ould be |
|000003c0| 6e 65 65 64 65 64 20 74 | 6f 20 63 6c 6f 73 65 20 |needed t|o close |
|000003d0| 74 68 65 0d 09 66 69 6c | 65 2c 20 61 73 20 74 68 |the..fil|e, as th|
|000003e0| 65 20 72 65 73 74 20 6f | 66 20 74 68 65 20 72 6f |e rest o|f the ro|
|000003f0| 75 74 69 6e 65 20 77 69 | 6c 6c 20 6e 6f 74 20 62 |utine wi|ll not b|
|00000400| 65 20 65 78 65 63 75 74 | 65 64 2e 09 28 53 65 65 |e execut|ed..(See|
|00000410| 20 74 68 65 20 65 78 61 | 6d 70 6c 65 0d 09 61 74 | the exa|mple..at|
|00000420| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 73 | the end| of thes|
|00000430| 65 20 63 6f 6d 6d 65 6e | 74 73 2e 29 0d 0d 09 52 |e commen|ts.)...R|
|00000440| 65 66 65 72 65 6e 63 65 | 73 20 74 6f 20 65 78 70 |eference|s to exp|
|00000450| 65 63 74 69 6f 6e 20 68 | 61 6e 64 6c 65 72 73 20 |ection h|andlers |
|00000460| 61 72 65 20 64 65 66 69 | 6e 65 64 20 62 79 20 74 |are defi|ned by t|
|00000470| 68 65 20 46 61 69 6c 49 | 6e 66 6f 20 72 65 63 6f |he FailI|nfo reco|
|00000480| 72 64 2e 0d 09 54 68 65 | 20 65 78 63 65 70 74 69 |rd...The| excepti|
|00000490| 6f 6e 20 68 61 6e 64 6c | 65 72 73 20 66 6f 72 6d |on handl|ers form|
|000004a0| 20 61 20 6c 69 6e 6b 65 | 64 2d 6c 69 73 74 20 76 | a linke|d-list v|
|000004b0| 69 61 20 74 68 65 20 6e | 65 78 74 49 6e 66 6f 20 |ia the n|extInfo |
|000004c0| 66 69 65 6c 64 20 6f 66 | 0d 09 46 61 69 6c 49 6e |field of|..FailIn|
|000004d0| 66 6f 2e 09 54 68 65 20 | 6c 69 6e 6b 65 64 20 6c |fo..The |linked l|
|000004e0| 69 73 74 20 69 73 20 61 | 20 73 74 61 63 6b 20 73 |ist is a| stack s|
|000004f0| 69 6e 63 65 20 6e 65 77 | 20 65 78 63 65 70 74 69 |ince new| excepti|
|00000500| 6f 6e 20 68 61 6e 64 6c | 65 72 73 0d 09 61 72 65 |on handl|ers..are|
|00000510| 20 61 64 64 65 64 20 74 | 6f 20 74 68 65 20 66 72 | added t|o the fr|
|00000520| 6f 6e 74 20 6f 66 20 74 | 68 65 20 6c 69 73 74 2e |ont of t|he list.|
|00000530| 0d 0d 09 4e 65 77 20 65 | 78 63 65 70 74 69 6f 6e |...New e|xception|
|00000540| 20 68 61 6e 64 6c 65 72 | 73 20 61 72 65 20 61 64 | handler|s are ad|
|00000550| 64 65 64 20 74 6f 20 74 | 68 65 20 73 74 61 63 6b |ded to t|he stack|
|00000560| 20 77 69 74 68 20 74 68 | 65 20 43 61 74 63 68 46 | with th|e CatchF|
|00000570| 61 69 6c 75 72 65 73 0d | 09 70 72 6f 63 65 64 75 |ailures.|.procedu|
|00000580| 72 65 2c 20 61 6e 64 20 | 72 65 6d 6f 76 65 64 20 |re, and |removed |
|00000590| 66 72 6f 6d 20 74 68 65 | 20 73 74 61 63 6b 20 77 |from the| stack w|
|000005a0| 69 74 68 20 74 68 65 20 | 53 75 63 63 65 73 73 20 |ith the |Success |
|000005b0| 70 72 6f 63 65 64 75 72 | 65 2e 09 49 6e 0d 09 67 |procedur|e..In..g|
|000005c0| 65 6e 65 72 61 6c 20 79 | 6f 75 20 63 61 6c 6c 20 |eneral y|ou call |
|000005d0| 43 61 74 63 68 46 61 69 | 6c 75 72 65 73 20 74 6f |CatchFai|lures to|
|000005e0| 20 70 6f 73 74 20 61 6e | 20 65 78 63 65 70 74 69 | post an| excepti|
|000005f0| 6f 6e 20 68 61 6e 64 6c | 65 72 20 77 68 65 6e 20 |on handl|er when |
|00000600| 61 6e 0d 09 65 72 72 6f | 72 20 74 68 65 20 61 70 |an..erro|r the ap|
|00000610| 70 6c 69 63 61 74 69 6f | 6e 20 73 68 6f 75 6c 64 |plicatio|n should|
|00000620| 20 68 61 6e 64 6c 65 20 | 6d 69 67 68 74 20 6f 63 | handle |might oc|
|00000630| 63 75 72 2c 20 61 6e 64 | 20 63 61 6c 6c 20 53 75 |cur, and| call Su|
|00000640| 63 63 65 73 73 20 74 6f | 0d 09 72 65 6d 6f 76 65 |ccess to|..remove|
|00000650| 20 74 68 65 20 68 61 6e | 64 6c 65 72 20 66 72 6f | the han|dler fro|
|00000660| 6d 20 74 68 65 20 73 74 | 61 63 6b 2c 20 61 66 74 |m the st|ack, aft|
|00000670| 65 72 20 74 68 65 20 68 | 61 6e 64 6c 65 72 20 69 |er the h|andler i|
|00000680| 73 20 6e 6f 20 6c 6f 6e | 67 65 72 0d 09 6e 65 65 |s no lon|ger..nee|
|00000690| 64 65 64 20 28 69 2e 65 | 2e 20 74 68 65 20 70 6f |ded (i.e|. the po|
|000006a0| 73 73 69 62 69 6c 69 74 | 79 20 6f 66 20 65 72 72 |ssibilit|y of err|
|000006b0| 6f 72 20 6e 6f 20 6c 6f | 6e 67 65 72 20 65 78 69 |or no lo|nger exi|
|000006c0| 73 74 73 29 2e 20 20 41 | 6e 79 20 66 61 69 6c 75 |sts). A|ny failu|
|000006d0| 72 65 0d 09 64 65 74 65 | 63 74 65 64 20 77 69 74 |re..dete|cted wit|
|000006e0| 68 69 6e 20 74 68 65 20 | 6c 69 6d 69 74 73 20 6f |hin the |limits o|
|000006f0| 66 20 74 68 65 20 43 61 | 74 63 68 46 61 69 6c 75 |f the Ca|tchFailu|
|00000700| 72 65 73 20 61 6e 64 20 | 73 75 62 73 65 71 75 65 |res and |subseque|
|00000710| 6e 74 20 53 75 63 63 65 | 73 73 0d 09 63 61 6c 6c |nt Succe|ss..call|
|00000720| 20 72 65 73 75 6c 74 73 | 20 69 6e 20 74 68 65 20 | results| in the |
|00000730| 65 78 65 63 75 74 69 6f | 6e 20 6f 66 20 74 68 65 |executio|n of the|
|00000740| 20 65 78 63 65 70 74 69 | 6f 6e 20 68 61 6e 64 6c | excepti|on handl|
|00000750| 65 72 2e 20 20 28 46 61 | 69 6c 75 72 65 20 64 6f |er. (Fa|ilure do|
|00000760| 65 73 0d 09 6e 6f 74 20 | 68 61 76 65 20 74 6f 20 |es..not |have to |
|00000770| 6f 63 63 75 72 20 69 6e | 20 74 68 65 20 73 61 6d |occur in| the sam|
|00000780| 65 20 72 6f 75 74 69 6e | 65 20 61 73 20 79 6f 75 |e routin|e as you|
|00000790| 72 20 63 61 6c 6c 20 74 | 6f 20 43 61 74 63 68 46 |r call t|o CatchF|
|000007a0| 61 69 6c 75 72 65 73 2e | 0d 09 54 68 65 20 66 61 |ailures.|..The fa|
|000007b0| 69 6c 75 72 65 20 6d 61 | 79 20 6f 63 63 75 72 20 |ilure ma|y occur |
|000007c0| 69 6e 20 61 6e 79 20 72 | 6f 75 74 69 6e 65 20 63 |in any r|outine c|
|000007d0| 61 6c 6c 65 64 20 61 66 | 74 65 72 20 43 61 74 63 |alled af|ter Catc|
|000007e0| 68 46 61 69 6c 75 72 65 | 73 20 62 75 74 0d 09 62 |hFailure|s but..b|
|000007f0| 65 66 6f 72 65 20 53 75 | 63 63 65 73 73 2e 29 0d |efore Su|ccess.).|
|00000800| 0d 09 57 68 65 6e 20 4d | 61 63 41 70 70 20 28 6f |..When M|acApp (o|
|00000810| 72 20 79 6f 75 72 20 63 | 6f 64 65 29 20 64 65 74 |r your c|ode) det|
|00000820| 65 72 6d 69 6e 65 73 20 | 74 68 61 74 20 61 20 66 |ermines |that a f|
|00000830| 61 69 6c 75 72 65 20 68 | 61 73 20 6f 63 63 75 72 |ailure h|as occur|
|00000840| 65 64 2c 20 69 74 0d 09 | 63 61 6c 6c 73 20 46 61 |ed, it..|calls Fa|
|00000850| 69 6c 75 72 65 2e 09 41 | 73 20 61 20 63 6f 6e 76 |ilure..A|s a conv|
|00000860| 65 6e 69 65 6e 63 65 2c | 20 73 65 76 65 72 61 6c |enience,| several|
|00000870| 20 70 72 6f 63 65 64 75 | 72 65 73 20 61 72 65 20 | procedu|res are |
|00000880| 70 72 6f 76 69 64 65 64 | 0d 09 74 6f 20 63 68 65 |provided|..to che|
|00000890| 63 6b 20 66 6f 72 20 73 | 74 61 6e 64 61 72 64 20 |ck for s|tandard |
|000008a0| 6b 69 6e 64 73 20 6f 66 | 20 66 61 69 6c 75 72 65 |kinds of| failure|
|000008b0| 73 20 61 6e 64 20 63 61 | 6c 6c 20 46 61 69 6c 75 |s and ca|ll Failu|
|000008c0| 72 65 20 69 66 20 6e 65 | 65 64 65 64 2e 0d 09 54 |re if ne|eded...T|
|000008d0| 68 65 73 65 20 70 72 6f | 63 65 64 75 72 65 73 20 |hese pro|cedures |
|000008e0| 61 72 65 3a 0d 0d 09 46 | 61 69 6c 4e 49 4c 20 09 |are:...F|ailNIL .|
|000008f0| 09 43 61 6c 6c 73 20 46 | 61 69 6c 75 72 65 20 69 |.Calls F|ailure i|
|00000900| 66 20 69 74 73 20 70 61 | 72 61 6d 65 74 65 72 20 |f its pa|rameter |
|00000910| 69 73 20 4e 49 4c 2e 0d | 09 46 61 69 6c 4f 53 45 |is NIL..|.FailOSE|
|00000920| 72 72 09 09 43 61 6c 6c | 73 20 46 61 69 6c 75 72 |rr..Call|s Failur|
|00000930| 65 20 69 66 20 69 74 73 | 20 70 61 72 61 6d 65 74 |e if its| paramet|
|00000940| 65 72 20 69 73 20 6e 6f | 74 20 6e 6f 45 72 72 2e |er is no|t noErr.|
|00000950| 0d 09 46 61 69 6c 4d 65 | 6d 45 72 72 6f 72 09 43 |..FailMe|mError.C|
|00000960| 61 6c 6c 73 20 46 61 69 | 6c 75 72 65 20 69 66 20 |alls Fai|lure if |
|00000970| 4d 65 6d 45 72 72 6f 72 | 20 72 65 74 75 72 6e 73 |MemError| returns|
|00000980| 20 6f 74 68 65 72 20 74 | 68 61 6e 20 6e 6f 45 72 | other t|han noEr|
|00000990| 72 2e 0d 09 46 61 69 6c | 52 65 73 45 72 72 6f 72 |r...Fail|ResError|
|000009a0| 09 43 61 6c 6c 73 20 46 | 61 69 6c 75 72 65 20 69 |.Calls F|ailure i|
|000009b0| 66 20 52 65 73 45 72 72 | 6f 72 20 72 65 74 75 72 |f ResErr|or retur|
|000009c0| 6e 73 20 6f 74 68 65 72 | 20 74 68 61 6e 20 6e 6f |ns other| than no|
|000009d0| 45 72 72 2e 0d 0d 09 57 | 68 65 6e 20 46 61 69 6c |Err....W|hen Fail|
|000009e0| 75 72 65 20 69 73 20 63 | 61 6c 6c 65 64 2c 20 65 |ure is c|alled, e|
|000009f0| 78 65 63 75 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |xecution| of the |
|00000a00| 72 6f 75 74 69 6e 65 20 | 74 68 61 74 20 63 61 6c |routine |that cal|
|00000a10| 6c 65 64 20 46 61 69 6c | 75 72 65 20 69 73 0d 09 |led Fail|ure is..|
|00000a20| 74 65 72 6d 69 6e 61 74 | 65 64 20 61 6e 64 20 74 |terminat|ed and t|
|00000a30| 68 65 20 65 78 63 65 70 | 74 69 6f 6e 20 68 61 6e |he excep|tion han|
|00000a40| 64 6c 65 72 20 61 74 20 | 74 68 65 20 74 6f 70 20 |dler at |the top |
|00000a50| 6f 66 20 74 68 65 20 73 | 74 61 63 6b 20 69 73 20 |of the s|tack is |
|00000a60| 70 6f 70 70 65 64 2e 0d | 09 46 6f 72 20 65 61 63 |popped..|.For eac|
|00000a70| 68 20 72 6f 75 74 69 6e | 65 20 74 68 61 74 20 77 |h routin|e that w|
|00000a80| 61 73 20 63 61 6c 6c 65 | 64 20 61 66 74 65 72 20 |as calle|d after |
|00000a90| 74 68 65 20 68 61 6e 64 | 6c 65 72 20 77 61 73 20 |the hand|ler was |
|00000aa0| 70 6f 73 74 65 64 0d 09 | 74 6f 20 74 68 65 20 73 |posted..|to the s|
|00000ab0| 74 61 63 6b 2c 20 65 78 | 65 63 75 74 69 6f 6e 20 |tack, ex|ecution |
|00000ac0| 69 73 20 74 65 72 6d 69 | 6e 61 74 65 64 20 61 73 |is termi|nated as|
|00000ad0| 20 74 68 6f 75 67 68 20 | 66 72 6f 6d 20 61 6e 20 | though |from an |
|00000ae0| 45 58 49 54 20 73 74 61 | 74 65 6d 65 6e 74 2e 0d |EXIT sta|tement..|
|00000af0| 09 54 68 65 6e 20 74 68 | 65 20 65 78 63 65 70 74 |.Then th|e except|
|00000b00| 69 6f 6e 20 68 61 6e 64 | 6c 65 72 20 69 73 20 63 |ion hand|ler is c|
|00000b10| 61 6c 6c 65 64 2e 09 49 | 74 20 67 65 6e 65 72 61 |alled..I|t genera|
|00000b20| 6c 6c 79 20 63 6c 65 61 | 6e 73 20 75 70 20 66 6f |lly clea|ns up fo|
|00000b30| 72 20 74 68 65 0d 09 72 | 6f 75 74 69 6e 65 20 69 |r the..r|outine i|
|00000b40| 6e 20 77 68 69 63 68 20 | 69 74 20 69 73 20 6e 65 |n which |it is ne|
|00000b50| 73 74 65 64 2e 09 55 70 | 6f 6e 20 63 6f 6d 70 6c |sted..Up|on compl|
|00000b60| 65 74 69 6f 6e 20 74 68 | 65 20 6e 65 78 74 20 65 |etion th|e next e|
|00000b70| 78 63 65 70 74 69 6f 6e | 20 68 61 6e 64 6c 65 72 |xception| handler|
|00000b80| 0d 09 69 73 20 70 6f 70 | 70 65 64 20 66 72 6f 6d |..is pop|ped from|
|00000b90| 20 74 68 65 20 73 74 61 | 63 6b 2c 20 72 65 70 65 | the sta|ck, repe|
|00000ba0| 61 74 69 6e 67 20 74 68 | 65 20 70 72 6f 63 65 73 |ating th|e proces|
|00000bb0| 73 2e 0d 0d 09 54 68 65 | 20 65 72 72 6f 72 20 63 |s....The| error c|
|00000bc0| 61 75 73 69 6e 67 20 74 | 68 65 20 66 61 69 6c 75 |ausing t|he failu|
|00000bd0| 72 65 2c 20 61 6e 64 20 | 61 20 6d 65 73 73 61 67 |re, and |a messag|
|00000be0| 65 20 63 6f 64 65 20 69 | 73 20 70 61 73 73 65 64 |e code i|s passed|
|00000bf0| 20 74 6f 20 46 61 69 6c | 75 72 65 2e 0d 09 46 6f | to Fail|ure...Fo|
|00000c00| 72 20 4d 61 63 41 70 70 | 2c 20 74 68 65 20 6c 61 |r MacApp|, the la|
|00000c10| 73 74 20 65 78 63 65 70 | 74 69 6f 6e 20 68 61 6e |st excep|tion han|
|00000c20| 64 6c 65 72 20 6f 6e 20 | 74 68 65 20 73 74 61 63 |dler on |the stac|
|00000c30| 6b 20 69 73 20 74 68 65 | 20 6f 6e 65 20 69 6e 0d |k is the| one in.|
|00000c40| 09 54 41 70 70 6c 69 63 | 61 74 69 6f 6e 2e 50 6f |.TApplic|ation.Po|
|00000c50| 6c 6c 45 76 65 6e 74 2e | 20 20 49 74 20 63 61 6c |llEvent.| It cal|
|00000c60| 6c 73 20 54 41 70 70 6c | 69 63 61 74 69 6f 6e 2e |ls TAppl|ication.|
|00000c70| 53 68 6f 77 45 72 72 6f | 72 2c 20 77 68 69 63 68 |ShowErro|r, which|
|00000c80| 20 63 61 6c 6c 73 0d 09 | 45 72 72 6f 72 41 6c 65 | calls..|ErrorAle|
|00000c90| 72 74 2c 20 77 68 69 63 | 68 20 64 65 63 6f 64 65 |rt, whic|h decode|
|00000ca0| 73 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 61 6e |s the me|ssage an|
|00000cb0| 64 20 64 69 73 70 6c 61 | 79 73 20 61 6e 20 61 6c |d displa|ys an al|
|00000cc0| 65 72 74 2e 20 20 59 6f | 75 20 65 78 63 65 70 74 |ert. Yo|u except|
|00000cd0| 69 6f 6e 0d 09 68 61 6e | 64 6c 65 72 73 20 6d 61 |ion..han|dlers ma|
|00000ce0| 79 20 73 65 74 20 74 68 | 65 20 6d 65 73 73 61 67 |y set th|e messag|
|00000cf0| 65 20 63 6f 64 65 20 74 | 6f 20 6f 6e 65 20 6d 6f |e code t|o one mo|
|00000d00| 72 65 20 73 70 65 63 69 | 66 69 63 20 74 6f 20 79 |re speci|fic to y|
|00000d10| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 0d |our appl|ication.|
|00000d20| 09 62 79 20 63 61 6c 6c | 69 6e 67 20 46 61 69 6c |.by call|ing Fail|
|00000d30| 4e 65 77 4d 65 73 73 61 | 67 65 20 61 74 20 74 68 |NewMessa|ge at th|
|00000d40| 65 20 65 6e 64 20 6f 66 | 20 79 6f 75 72 20 65 78 |e end of| your ex|
|00000d50| 63 65 70 74 69 6f 6e 20 | 68 61 6e 64 6c 65 72 2e |ception |handler.|
|00000d60| 0d 09 46 61 69 6c 4e 65 | 77 4d 65 73 73 61 67 65 |..FailNe|wMessage|
|00000d70| 20 63 68 61 6e 67 65 73 | 20 74 68 65 20 6d 65 73 | changes| the mes|
|00000d80| 73 61 67 65 20 6f 6e 6c | 79 20 69 66 20 74 68 65 |sage onl|y if the|
|00000d90| 20 63 75 72 72 65 6e 74 | 20 6f 6e 65 20 69 73 20 | current| one is |
|00000da0| 6e 6f 6e 2d 7a 65 72 6f | 2e 0d 09 54 68 69 73 20 |non-zero|...This |
|00000db0| 68 61 73 20 74 68 65 20 | 65 66 66 65 63 74 20 6f |has the |effect o|
|00000dc0| 66 20 61 6c 6c 6f 77 69 | 6e 67 20 74 68 6f 73 65 |f allowi|ng those|
|00000dd0| 20 65 78 63 65 70 74 69 | 6f 6e 20 68 61 6e 64 6c | excepti|on handl|
|00000de0| 65 72 73 20 63 6c 6f 73 | 65 73 74 20 74 6f 20 74 |ers clos|est to t|
|00000df0| 68 65 0d 09 73 6f 75 72 | 63 65 20 6f 66 20 74 68 |he..sour|ce of th|
|00000e00| 65 20 65 72 72 6f 72 20 | 74 6f 20 73 65 74 20 74 |e error |to set t|
|00000e10| 68 65 20 6d 65 73 73 61 | 67 65 2e 0d 0d 09 4f 6e |he messa|ge....On|
|00000e20| 65 20 6c 61 73 74 20 6e | 6f 74 65 20 61 62 6f 75 |e last n|ote abou|
|00000e30| 74 20 65 78 63 65 70 74 | 69 6f 6e 20 68 61 6e 64 |t except|ion hand|
|00000e40| 6c 65 72 73 3a 20 20 49 | 74 20 69 73 20 70 6f 73 |lers: I|t is pos|
|00000e50| 73 69 62 6c 65 20 66 6f | 72 20 61 6e 20 65 78 63 |sible fo|r an exc|
|00000e60| 65 70 74 69 6f 6e 0d 09 | 68 61 6e 64 6c 65 72 20 |eption..|handler |
|00000e70| 74 6f 20 74 65 72 6d 69 | 6e 61 74 65 20 65 78 63 |to termi|nate exc|
|00000e80| 65 70 74 69 6f 6e 20 70 | 72 6f 63 65 73 73 69 6e |eption p|rocessin|
|00000e90| 67 20 62 79 20 75 73 69 | 6e 67 20 61 20 6e 6f 6e |g by usi|ng a non|
|00000ea0| 2d 6c 6f 63 61 6c 20 47 | 4f 54 4f 20 74 6f 0d 09 |-local G|OTO to..|
|00000eb0| 6a 75 6d 70 20 62 61 63 | 6b 20 69 6e 74 6f 20 74 |jump bac|k into t|
|00000ec0| 68 65 20 72 6f 75 74 69 | 6e 65 20 69 6e 20 77 68 |he routi|ne in wh|
|00000ed0| 69 63 68 20 74 68 65 20 | 65 78 63 65 70 74 69 6f |ich the |exceptio|
|00000ee0| 6e 20 68 61 6e 64 6c 65 | 72 20 69 73 20 6e 65 73 |n handle|r is nes|
|00000ef0| 74 65 64 2e 20 20 54 68 | 69 73 0d 09 69 73 20 68 |ted. Th|is..is h|
|00000f00| 6f 77 20 4d 61 63 41 70 | 70 20 6b 65 65 70 73 20 |ow MacAp|p keeps |
|00000f10| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00000f20| 72 75 6e 6e 69 6e 67 20 | 77 68 65 6e 20 61 20 66 |running |when a f|
|00000f30| 61 69 6c 75 72 65 20 6f | 63 63 75 72 73 2e 09 54 |ailure o|ccurs..T|
|00000f40| 68 65 0d 09 6c 61 73 74 | 20 65 78 63 65 70 74 69 |he..last| excepti|
|00000f50| 6f 6e 20 68 61 6e 64 6c | 65 72 20 6f 6e 20 74 68 |on handl|er on th|
|00000f60| 65 20 73 74 61 63 6b 2c | 20 69 6e 20 54 41 70 70 |e stack,| in TApp|
|00000f70| 6c 69 63 61 74 69 6f 6e | 2e 50 6f 6c 6c 45 76 65 |lication|.PollEve|
|00000f80| 6e 74 2c 20 75 73 65 73 | 20 61 0d 09 47 4f 54 4f |nt, uses| a..GOTO|
|00000f90| 20 74 6f 20 63 6f 6e 74 | 69 6e 75 65 20 65 76 65 | to cont|inue eve|
|00000fa0| 6e 74 20 70 72 6f 63 65 | 73 73 69 6e 67 2e 0d 0d |nt proce|ssing...|
|00000fb0| 09 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 69 |.The fol|lowing i|
|00000fc0| 73 20 61 6e 20 65 78 61 | 6d 70 6c 65 20 73 68 6f |s an exa|mple sho|
|00000fd0| 77 69 6e 67 20 74 68 65 | 20 75 73 65 20 6f 66 20 |wing the| use of |
|00000fe0| 65 78 63 65 70 74 69 6f | 6e 20 68 61 6e 64 6c 65 |exceptio|n handle|
|00000ff0| 72 73 2e 0d 09 54 68 65 | 20 52 65 61 64 54 68 65 |rs...The| ReadThe|
|00001000| 46 69 6c 65 20 70 72 6f | 63 65 64 75 72 65 20 72 |File pro|cedure r|
|00001010| 65 61 64 73 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |eads the| content|
|00001020| 73 20 6f 66 20 61 20 66 | 69 6c 65 2c 20 73 69 67 |s of a f|ile, sig|
|00001030| 6e 61 6c 6c 69 6e 67 0d | 09 66 61 69 6c 75 72 65 |nalling.|.failure|
|00001040| 20 69 66 20 74 68 65 20 | 6f 70 65 6e 2c 20 72 65 | if the |open, re|
|00001050| 61 64 2c 20 6f 72 20 63 | 6c 6f 73 65 20 72 65 74 |ad, or c|lose ret|
|00001060| 75 72 6e 73 20 61 6e 20 | 65 72 72 6f 72 2e 0d 0d |urns an |error...|
|00001070| 09 50 52 4f 43 45 44 55 | 52 45 20 52 65 61 64 54 |.PROCEDU|RE ReadT|
|00001080| 68 65 46 69 6c 65 20 28 | 66 69 6c 65 4e 61 6d 65 |heFile (|fileName|
|00001090| 3a 20 53 74 72 32 35 35 | 3b 20 76 6f 6c 52 65 66 |: Str255|; volRef|
|000010a0| 4e 75 6d 3a 20 49 4e 54 | 45 47 45 52 3b 0d 09 09 |Num: INT|EGER;...|
|000010b0| 09 09 09 09 09 56 41 52 | 20 63 6f 6e 74 65 6e 74 |.....VAR| content|
|000010c0| 73 3a 20 43 6f 6e 74 65 | 6e 74 73 52 65 63 6f 72 |s: Conte|ntsRecor|
|000010d0| 64 29 3b 0d 09 56 41 52 | 0d 09 09 66 69 3a 20 09 |d);..VAR|...fi: .|
|000010e0| 09 46 61 69 6c 49 6e 66 | 6f 3b 0d 09 09 63 6f 75 |.FailInf|o;...cou|
|000010f0| 6e 74 3a 09 09 4c 4f 4e | 47 49 4e 54 3b 0d 0d 09 |nt:..LON|GINT;...|
|00001100| 09 50 52 4f 43 45 44 55 | 52 45 20 45 78 63 65 70 |.PROCEDU|RE Excep|
|00001110| 74 69 6f 6e 48 61 6e 64 | 6c 65 72 20 28 65 72 72 |tionHand|ler (err|
|00001120| 6f 72 3a 20 4f 53 45 72 | 72 3b 20 6d 65 73 73 61 |or: OSEr|r; messa|
|00001130| 67 65 3a 20 4c 4f 4e 47 | 49 4e 54 29 3b 0d 09 09 |ge: LONG|INT);...|
|00001140| 56 41 52 0d 09 09 09 65 | 72 72 3a 09 4f 53 45 72 |VAR....e|rr:.OSEr|
|00001150| 72 3b 0d 09 09 42 45 47 | 49 4e 0d 09 09 09 65 72 |r;...BEG|IN....er|
|00001160| 72 20 3a 3d 20 46 53 43 | 6c 6f 73 65 28 66 69 6c |r := FSC|lose(fil|
|00001170| 65 52 65 66 4e 75 6d 29 | 3b 20 09 7b 20 4d 61 6b |eRefNum)|; .{ Mak|
|00001180| 65 20 73 75 72 65 20 74 | 68 65 20 66 69 6c 65 20 |e sure t|he file |
|00001190| 69 73 20 63 6c 6f 73 65 | 64 20 7d 0d 09 09 09 7b |is close|d }....{|
|000011a0| 20 50 61 73 73 20 6f 6e | 20 6d 79 20 6f 77 6e 20 | Pass on| my own |
|000011b0| 65 72 72 6f 72 20 6d 65 | 73 73 61 67 65 2e 2e 2e |error me|ssage...|
|000011c0| 20 7d 0d 09 09 09 46 61 | 69 6c 4e 65 77 4d 65 73 | }....Fa|ilNewMes|
|000011d0| 73 61 67 65 28 65 72 72 | 6f 72 2c 20 6d 65 73 73 |sage(err|or, mess|
|000011e0| 61 67 65 2c 20 6b 4d 79 | 45 72 72 6f 72 4d 65 73 |age, kMy|ErrorMes|
|000011f0| 73 61 67 65 29 3b 0d 09 | 09 45 4e 44 3b 0d 0d 09 |sage);..|.END;...|
|00001200| 42 45 47 49 4e 0d 09 09 | 7b 20 49 66 20 46 53 4f |BEGIN...|{ If FSO|
|00001210| 70 65 6e 20 66 61 69 6c | 73 20 77 65 20 64 6f 6e |pen fail|s we don|
|00001220| 27 74 20 6e 65 65 64 20 | 74 6f 20 64 6f 20 61 6e |'t need |to do an|
|00001230| 79 20 66 61 69 6c 75 72 | 65 20 68 61 6e 64 6c 69 |y failur|e handli|
|00001240| 6e 67 2c 0d 09 09 09 74 | 68 6f 75 67 68 20 74 68 |ng,....t|hough th|
|00001250| 65 20 67 75 79 20 74 68 | 61 74 20 63 61 6c 6c 65 |e guy th|at calle|
|00001260| 64 20 75 73 20 70 72 6f | 62 61 62 6c 79 20 77 69 |d us pro|bably wi|
|00001270| 6c 6c 2e 20 7d 0d 09 09 | 46 61 69 6c 4f 53 45 72 |ll. }...|FailOSEr|
|00001280| 72 28 46 53 4f 70 65 6e | 28 66 69 6c 65 4e 61 6d |r(FSOpen|(fileNam|
|00001290| 65 2c 20 76 6f 6c 52 65 | 66 4e 75 6d 2c 20 66 69 |e, volRe|fNum, fi|
|000012a0| 6c 65 52 65 66 4e 75 6d | 29 29 3b 0d 0d 09 09 7b |leRefNum|));....{|
|000012b0| 20 4e 6f 77 20 74 68 61 | 74 20 74 68 65 20 66 69 | Now tha|t the fi|
|000012c0| 6c 65 20 69 73 20 6f 70 | 65 6e 2c 20 69 66 20 74 |le is op|en, if t|
|000012d0| 68 65 20 72 65 61 64 20 | 66 61 69 6c 73 20 77 65 |he read |fails we|
|000012e0| 20 6d 75 73 74 20 6d 61 | 6b 65 0d 09 09 09 73 75 | must ma|ke....su|
|000012f0| 72 65 20 74 6f 20 63 6c | 6f 73 65 20 74 68 65 20 |re to cl|ose the |
|00001300| 66 69 6c 65 2e 20 7d 0d | 09 09 43 61 74 63 68 46 |file. }.|..CatchF|
|00001310| 61 69 6c 75 72 65 73 28 | 66 69 2c 20 45 78 63 65 |ailures(|fi, Exce|
|00001320| 70 74 69 6f 6e 68 61 6e | 64 6c 65 72 29 3b 0d 0d |ptionhan|dler);..|
|00001330| 09 09 63 6f 75 6e 74 20 | 3a 3d 20 53 49 5a 45 4f |..count |:= SIZEO|
|00001340| 46 28 43 6f 6e 74 65 6e | 74 73 52 65 63 6f 72 64 |F(Conten|tsRecord|
|00001350| 29 3b 0d 09 09 46 61 69 | 6c 4f 53 45 72 72 28 46 |);...Fai|lOSErr(F|
|00001360| 53 52 65 61 64 28 66 69 | 6c 65 52 65 66 4e 75 6d |SRead(fi|leRefNum|
|00001370| 2c 20 63 6f 75 6e 74 2c | 20 40 63 6f 6e 74 65 6e |, count,| @conten|
|00001380| 74 73 29 29 3b 0d 0d 09 | 09 7b 20 54 68 65 20 66 |ts));...|.{ The f|
|00001390| 69 6c 65 27 73 20 62 65 | 65 6e 20 72 65 61 64 20 |ile's be|en read |
|000013a0| 73 6f 20 77 65 20 64 6f | 6e 27 74 20 6e 65 65 64 |so we do|n't need|
|000013b0| 20 6f 75 72 20 65 78 63 | 65 70 74 69 6f 6e 20 68 | our exc|eption h|
|000013c0| 61 6e 64 6c 65 72 0d 09 | 09 09 61 6e 79 6d 6f 72 |andler..|..anymor|
|000013d0| 65 2e 20 7d 0d 09 09 53 | 75 63 63 65 73 73 28 66 |e. }...S|uccess(f|
|000013e0| 69 29 3b 0d 0d 09 09 7b | 20 41 67 61 69 6e 2c 20 |i);....{| Again, |
|000013f0| 74 68 65 20 67 75 79 20 | 74 68 61 74 20 63 61 6c |the guy |that cal|
|00001400| 6c 65 64 20 75 73 20 77 | 69 6c 6c 20 68 61 76 65 |led us w|ill have|
|00001410| 20 74 6f 20 64 65 61 6c | 20 77 69 74 68 20 74 68 | to deal| with th|
|00001420| 69 73 2e 20 7d 0d 09 09 | 46 61 69 6c 4f 53 45 72 |is. }...|FailOSEr|
|00001430| 72 28 46 53 43 6c 6f 73 | 65 28 66 69 6c 65 52 65 |r(FSClos|e(fileRe|
|00001440| 66 4e 75 6d 29 29 3b 0d | 09 45 4e 44 3b 0d 2a 2f |fNum));.|.END;.*/|
|00001450| 0d 0d 23 69 66 6e 64 65 | 66 20 20 5f 5f 55 46 61 |..#ifnde|f __UFa|
|00001460| 69 6c 75 72 65 5f 5f 0d | 23 64 65 66 69 6e 65 20 |ilure__.|#define |
|00001470| 5f 5f 55 46 61 69 6c 75 | 72 65 5f 5f 20 20 30 0d |__UFailu|re__ 0.|
|00001480| 23 65 6e 64 69 66 0d 23 | 69 66 20 20 21 20 5f 5f |#endif.#|if ! __|
|00001490| 55 46 61 69 6c 75 72 65 | 5f 5f 0d 23 64 65 66 69 |UFailure|__.#defi|
|000014a0| 6e 65 20 5f 5f 55 46 61 | 69 6c 75 72 65 5f 5f 20 |ne __UFa|ilure__ |
|000014b0| 20 31 0d 0d 09 09 2f 2a | 20 a5 20 41 75 74 6f 2d | 1..../*| . Auto-|
|000014c0| 49 6e 63 6c 75 64 65 20 | 74 68 65 20 72 65 71 75 |Include |the requ|
|000014d0| 69 72 65 6d 65 6e 74 73 | 20 66 6f 72 20 74 68 69 |irements| for thi|
|000014e0| 73 20 75 6e 69 74 27 73 | 20 69 6e 74 65 72 66 61 |s unit's| interfa|
|000014f0| 63 65 2e 20 2a 2f 0d 23 | 69 66 6e 64 65 66 20 20 |ce. */.#|ifndef |
|00001500| 5f 5f 54 59 50 45 53 5f | 5f 0d 23 69 6e 63 6c 75 |__TYPES_|_.#inclu|
|00001510| 64 65 20 22 54 79 70 65 | 73 2e 68 22 0d 23 65 6e |de "Type|s.h".#en|
|00001520| 64 69 66 0d 0d 63 6f 6e | 73 74 20 73 68 6f 72 74 |dif..con|st short|
|00001530| 20 6d 69 6e 45 72 72 09 | 09 09 09 3d 20 2d 20 33 | minErr.|...= - 3|
|00001540| 32 37 36 38 3b 09 09 09 | 09 2f 2a 20 4c 6f 77 20 |2768;...|./* Low |
|00001550| 65 72 72 6f 72 20 6e 75 | 6d 62 65 72 20 2a 2f 0d |error nu|mber */.|
|00001560| 63 6f 6e 73 74 20 73 68 | 6f 72 74 20 6d 61 78 45 |const sh|ort maxE|
|00001570| 72 72 09 09 09 09 3d 20 | 33 32 37 36 37 3b 09 09 |rr....= |32767;..|
|00001580| 09 09 2f 2a 20 48 69 67 | 68 20 65 72 72 6f 72 20 |../* Hig|h error |
|00001590| 6e 75 6d 62 65 72 20 2a | 2f 0d 09 09 09 2f 2a 20 |number *|/..../* |
|000015a0| 75 73 65 64 20 66 6f 72 | 20 74 68 65 20 65 78 63 |used for| the exc|
|000015b0| 65 70 74 69 6f 6e 20 68 | 61 6e 64 6c 69 6e 67 20 |eption h|andling |
|000015c0| 6d 65 63 68 61 6e 69 73 | 6d 20 2a 2f 0d 09 09 09 |mechanis|m */....|
|000015d0| 2f 2a 20 50 72 65 66 65 | 72 72 65 64 2e 20 54 68 |/* Prefe|rred. Th|
|000015e0| 65 20 70 6f 69 6e 74 65 | 72 20 74 79 70 65 20 5f |e pointe|r type _|
|000015f0| 4d 55 53 54 5f 20 62 65 | 20 64 65 63 6c 61 72 65 |MUST_ be| declare|
|00001600| 64 20 66 69 72 73 74 0d | 09 09 09 20 20 20 73 69 |d first.|... si|
|00001610| 6e 63 65 20 74 68 65 20 | 72 65 63 6f 72 64 20 69 |nce the |record i|
|00001620| 73 20 73 65 6c 66 20 72 | 65 66 65 72 65 6e 74 69 |s self r|eferenti|
|00001630| 61 6c 20 2a 2f 0d 74 79 | 70 65 64 65 66 20 73 74 |al */.ty|pedef st|
|00001640| 72 75 63 74 20 46 61 69 | 6c 49 6e 66 6f 20 2a 46 |ruct Fai|lInfo *F|
|00001650| 61 69 6c 49 6e 66 6f 50 | 74 72 3b 0d 73 74 72 75 |ailInfoP|tr;.stru|
|00001660| 63 74 20 46 61 69 6c 49 | 6e 66 6f 20 7b 0d 09 6c |ct FailI|nfo {..l|
|00001670| 6f 6e 67 20 72 65 67 73 | 5b 31 31 5d 3b 09 09 09 |ong regs|[11];...|
|00001680| 09 09 09 09 2f 2a 20 54 | 68 65 20 73 61 76 65 64 |..../* T|he saved|
|00001690| 20 72 65 67 69 73 74 65 | 72 73 20 61 73 20 6f 66 | registe|rs as of|
|000016a0| 20 74 68 65 0d 20 20 20 | 20 20 20 20 20 20 20 20 | the. | |
|000016b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016d0| 20 20 20 20 43 61 74 63 | 68 46 61 69 6c 75 72 65 | Catc|hFailure|
|000016e0| 73 2e 20 2a 2f 0d 09 73 | 68 6f 72 74 20 65 72 72 |s. */..s|hort err|
|000016f0| 6f 72 3b 09 09 09 09 09 | 09 09 2f 2a 20 54 68 65 |or;.....|../* The|
|00001700| 20 65 72 72 6f 72 20 63 | 6f 6e 64 69 74 69 6f 6e | error c|ondition|
|00001710| 20 70 61 73 73 65 64 20 | 74 6f 20 46 61 69 6c 75 | passed |to Failu|
|00001720| 72 65 2e 20 2a 2f 0d 09 | 6c 6f 6e 67 20 6d 65 73 |re. */..|long mes|
|00001730| 73 61 67 65 3b 09 09 09 | 09 09 09 09 2f 2a 20 54 |sage;...|..../* T|
|00001740| 68 65 20 6d 65 73 73 61 | 67 65 20 77 68 69 63 68 |he messa|ge which|
|00001750| 20 61 63 63 6f 6d 70 61 | 6e 69 65 64 20 74 68 65 | accompa|nied the|
|00001760| 20 46 61 69 6c 75 72 65 | 2e 20 2a 2f 0d 09 6c 6f | Failure|. */..lo|
|00001770| 6e 67 20 66 61 69 6c 41 | 36 3b 09 09 09 09 09 09 |ng failA|6;......|
|00001780| 09 2f 2a 20 41 36 20 6f | 66 20 74 68 65 20 63 61 |./* A6 o|f the ca|
|00001790| 6c 6c 65 72 20 74 6f 20 | 43 61 74 63 68 46 61 69 |ller to |CatchFai|
|000017a0| 6c 75 72 65 73 2e 20 2a | 2f 0d 09 6c 6f 6e 67 20 |lures. *|/..long |
|000017b0| 66 61 69 6c 50 43 3b 09 | 09 09 09 09 09 09 2f 2a |failPC;.|....../*|
|000017c0| 20 41 64 64 72 65 73 73 | 20 6f 66 20 66 61 69 6c | Address| of fail|
|000017d0| 75 72 65 20 68 61 6e 64 | 6c 65 72 20 72 6f 75 74 |ure hand|ler rout|
|000017e0| 69 6e 65 2e 20 2a 2f 0d | 09 46 61 69 6c 49 6e 66 |ine. */.|.FailInf|
|000017f0| 6f 50 74 72 20 6e 65 78 | 74 49 6e 66 6f 3b 09 09 |oPtr nex|tInfo;..|
|00001800| 09 09 09 2f 2a 20 4e 65 | 78 74 20 69 6e 20 73 74 |.../* Ne|xt in st|
|00001810| 61 63 6b 2e 20 2a 2f 0d | 7d 3b 0d 74 79 70 65 64 |ack. */.|};.typed|
|00001820| 65 66 20 46 61 69 6c 49 | 6e 66 6f 50 74 72 20 50 |ef FailI|nfoPtr P|
|00001830| 46 61 69 6c 49 6e 66 6f | 3b 09 09 09 09 09 09 09 |FailInfo|;.......|
|00001840| 2f 2a 20 4c 65 66 74 20 | 69 6e 20 66 6f 72 20 63 |/* Left |in for c|
|00001850| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 28 32 2e |ompatibi|lity (2.|
|00001860| 30 29 20 2a 2f 0d 0d 65 | 78 74 65 72 6e 20 70 61 |0) */..e|xtern pa|
|00001870| 73 63 61 6c 20 46 61 69 | 6c 49 6e 66 6f 50 74 72 |scal Fai|lInfoPtr|
|00001880| 20 67 54 6f 70 48 61 6e | 64 6c 65 72 3b 0d 20 20 | gTopHan|dler;. |
|00001890| 20 2f 2a 20 4d 6f 73 74 | 20 72 65 63 65 6e 74 20 | /* Most| recent |
|000018a0| 6c 69 6e 6b 20 69 6e 20 | 6c 69 6e 6b 65 64 20 6c |link in |linked l|
|000018b0| 69 73 74 20 6f 66 20 66 | 61 69 6c 75 72 65 0d 09 |ist of f|ailure..|
|000018c0| 20 20 68 61 6e 64 6c 65 | 72 73 2e 20 53 65 74 20 | handle|rs. Set |
|000018d0| 74 6f 20 6e 69 6c 20 62 | 79 20 61 20 63 6f 6e 73 |to nil b|y a cons|
|000018e0| 74 61 6e 74 20 69 6e 0d | 09 20 20 55 46 61 69 6c |tant in.|. UFail|
|000018f0| 75 72 65 2e 61 20 73 6f | 20 74 68 61 74 20 46 61 |ure.a so| that Fa|
|00001900| 69 6c 75 72 65 20 68 61 | 6e 64 6c 69 6e 67 20 6e |ilure ha|ndling n|
|00001910| 65 76 65 72 0d 09 20 20 | 6e 65 65 64 73 20 74 6f |ever.. |needs to|
|00001920| 20 62 65 20 69 6e 69 74 | 69 61 6c 69 7a 65 64 2e | be init|ialized.|
|00001930| 20 2a 2f 0d 0d 65 78 74 | 65 72 6e 20 70 61 73 63 | */..ext|ern pasc|
|00001940| 61 6c 20 76 6f 69 64 20 | 41 73 73 65 72 74 69 6f |al void |Assertio|
|00001950| 6e 28 42 6f 6f 6c 65 61 | 6e 20 63 6f 6e 64 69 74 |n(Boolea|n condit|
|00001960| 69 6f 6e 2c 20 53 74 72 | 69 6e 67 50 74 72 20 64 |ion, Str|ingPtr d|
|00001970| 65 73 63 72 69 70 74 69 | 6f 6e 29 3b 0d 09 09 2f |escripti|on);.../|
|00001980| 2a 20 41 73 73 65 72 74 | 73 20 61 20 63 6f 6e 64 |* Assert|s a cond|
|00001990| 69 74 69 6f 6e 2e 49 66 | 20 63 6f 6e 64 69 74 69 |ition.If| conditi|
|000019a0| 6f 6e 20 69 73 20 46 41 | 4c 53 45 20 3a 20 49 46 |on is FA|LSE : IF|
|000019b0| 20 64 65 62 75 67 67 69 | 6e 67 20 3a 20 70 72 69 | debuggi|ng : pri|
|000019c0| 6e 74 73 20 64 65 73 63 | 72 69 70 74 69 6f 6e 20 |nts desc|ription |
|000019d0| 61 6e 64 0d 09 09 20 20 | 20 73 74 6f 70 73 20 69 |and... | stops i|
|000019e0| 6e 20 44 65 62 75 67 67 | 65 72 20 45 4c 53 45 20 |n Debugg|er ELSE |
|000019f0| 3a 20 53 69 67 6e 61 6c | 73 20 61 20 67 65 6e 65 |: Signal|s a gene|
|00001a00| 72 61 6c 20 66 61 69 6c | 75 72 65 2e 20 2a 2f 0d |ral fail|ure. */.|
|00001a10| 0d 70 61 73 63 61 6c 20 | 6c 6f 6e 67 20 42 75 69 |.pascal |long Bui|
|00001a20| 6c 64 4d 65 73 73 61 67 | 65 28 73 68 6f 72 74 20 |ldMessag|e(short |
|00001a30| 6c 6f 77 57 6f 72 64 2c | 20 73 68 6f 72 74 20 68 |lowWord,| short h|
|00001a40| 69 67 68 57 6f 72 64 29 | 0d 20 20 20 20 3d 20 20 |ighWord)|. = |
|00001a50| 30 78 32 45 39 46 3b 09 | 09 09 09 09 09 09 09 09 |0x2E9F;.|........|
|00001a60| 09 09 2f 2a 20 4d 4f 56 | 45 2e 4c 20 28 41 37 29 |../* MOV|E.L (A7)|
|00001a70| 2b 2c 28 41 37 29 20 2a | 2f 0d 09 09 2f 2a 20 54 |+,(A7) *|/.../* T|
|00001a80| 61 6b 65 73 20 74 68 65 | 20 32 20 69 6e 74 65 67 |akes the| 2 integ|
|00001a90| 65 72 73 20 61 6e 64 20 | 63 6f 6d 62 69 6e 65 73 |ers and |combines|
|00001aa0| 20 74 68 65 6d 20 69 6e | 74 6f 20 61 20 4c 4f 4e | them in|to a LON|
|00001ab0| 47 49 4e 54 20 66 61 69 | 6c 75 72 65 20 6d 65 73 |GINT fai|lure mes|
|00001ac0| 73 61 67 65 2e 20 20 4e | 6f 74 65 20 74 68 61 74 |sage. N|ote that|
|00001ad0| 20 74 68 65 0d 20 20 20 | 20 20 20 20 20 6c 6f 77 | the. | low|
|00001ae0| 2d 6f 72 64 65 72 20 77 | 6f 72 64 20 69 73 20 74 |-order w|ord is t|
|00001af0| 68 65 20 66 69 72 73 74 | 20 70 61 72 61 6d 65 74 |he first| paramet|
|00001b00| 65 72 2e 20 2a 2f 0d 0d | 65 78 74 65 72 6e 20 70 |er. */..|extern p|
|00001b10| 61 73 63 61 6c 20 76 6f | 69 64 20 43 61 74 63 68 |ascal vo|id Catch|
|00001b20| 46 61 69 6c 75 72 65 73 | 28 46 61 69 6c 49 6e 66 |Failures|(FailInf|
|00001b30| 6f 20 2a 66 69 2c 20 70 | 61 73 63 61 6c 20 76 6f |o *fi, p|ascal vo|
|00001b40| 69 64 20 28 2a 48 61 6e | 64 6c 65 72 29 28 73 68 |id (*Han|dler)(sh|
|00001b50| 6f 72 74 20 65 2c 20 6c | 6f 6e 67 20 6d 2c 20 76 |ort e, l|ong m, v|
|00001b60| 6f 69 64 20 2a 0d 20 20 | 20 48 61 6e 64 6c 65 72 |oid *. | Handler|
|00001b70| 5f 53 74 61 74 69 63 4c | 69 6e 6b 29 2c 20 76 6f |_StaticL|ink), vo|
|00001b80| 69 64 20 2a 48 61 6e 64 | 6c 65 72 5f 53 74 61 74 |id *Hand|ler_Stat|
|00001b90| 69 63 4c 69 6e 6b 29 3b | 0d 09 09 2f 2a 20 43 61 |icLink);|.../* Ca|
|00001ba0| 6c 6c 20 74 68 69 73 20 | 74 6f 20 73 65 74 20 75 |ll this |to set u|
|00001bb0| 70 20 61 6e 20 65 78 63 | 65 70 74 69 6f 6e 20 68 |p an exc|eption h|
|00001bc0| 61 6e 64 6c 65 72 2e 20 | 54 68 69 73 20 70 75 73 |andler. |This pus|
|00001bd0| 68 65 73 20 79 6f 75 72 | 20 68 61 6e 64 6c 65 72 |hes your| handler|
|00001be0| 20 6f 6e 74 6f 0d 20 20 | 20 20 20 20 20 20 61 20 | onto. | a |
|00001bf0| 73 74 61 63 6b 20 6f 66 | 20 65 78 63 65 70 74 69 |stack of| excepti|
|00001c00| 6f 6e 20 68 61 6e 64 6c | 65 72 73 2e 20 2a 2f 0d |on handl|ers. */.|
|00001c10| 0d 65 78 74 65 72 6e 20 | 70 61 73 63 61 6c 20 76 |.extern |pascal v|
|00001c20| 6f 69 64 20 45 61 63 68 | 46 61 69 6c 75 72 65 48 |oid Each|FailureH|
|00001c30| 61 6e 64 6c 65 72 44 6f | 28 70 61 73 63 61 6c 20 |andlerDo|(pascal |
|00001c40| 76 6f 69 64 20 28 2a 44 | 6f 54 6f 48 61 6e 64 6c |void (*D|oToHandl|
|00001c50| 65 72 29 28 46 61 69 6c | 49 6e 66 6f 50 74 72 20 |er)(Fail|InfoPtr |
|00001c60| 66 69 50 74 72 2c 20 76 | 6f 69 64 20 2a 0d 20 20 |fiPtr, v|oid *. |
|00001c70| 20 44 6f 54 6f 48 61 6e | 64 6c 65 72 5f 53 74 61 | DoToHan|dler_Sta|
|00001c80| 74 69 63 4c 69 6e 6b 29 | 2c 20 76 6f 69 64 20 2a |ticLink)|, void *|
|00001c90| 44 6f 54 6f 48 61 6e 64 | 6c 65 72 5f 53 74 61 74 |DoToHand|ler_Stat|
|00001ca0| 69 63 4c 69 6e 6b 29 3b | 0d 09 09 2f 2a 20 43 61 |icLink);|.../* Ca|
|00001cb0| 6c 6c 73 20 44 6f 54 6f | 48 61 6e 64 6c 65 72 20 |lls DoTo|Handler |
|00001cc0| 66 6f 72 20 65 61 63 68 | 20 66 61 69 6c 75 72 65 |for each| failure|
|00001cd0| 20 68 61 6e 64 6c 65 72 | 20 69 6e 20 74 68 65 20 | handler| in the |
|00001ce0| 73 74 61 63 6b 20 66 72 | 6f 6d 20 67 54 6f 70 48 |stack fr|om gTopH|
|00001cf0| 61 6e 64 6c 65 72 0d 20 | 20 20 20 20 20 20 20 74 |andler. | t|
|00001d00| 6f 20 74 68 65 20 6f 75 | 74 65 72 6d 6f 73 74 20 |o the ou|termost |
|00001d10| 68 61 6e 64 6c 65 72 2e | 20 2a 2f 0d 0d 65 78 74 |handler.| */..ext|
|00001d20| 65 72 6e 20 70 61 73 63 | 61 6c 20 76 6f 69 64 20 |ern pasc|al void |
|00001d30| 46 61 69 6c 75 72 65 28 | 73 68 6f 72 74 20 65 72 |Failure(|short er|
|00001d40| 72 6f 72 2c 20 6c 6f 6e | 67 20 6d 65 73 73 61 67 |ror, lon|g messag|
|00001d50| 65 29 3b 0d 09 09 2f 2a | 20 43 61 6c 6c 20 74 68 |e);.../*| Call th|
|00001d60| 69 73 20 74 6f 20 73 69 | 67 6e 61 6c 20 61 20 66 |is to si|gnal a f|
|00001d70| 61 69 6c 75 72 65 2e 20 | 20 43 6f 6e 74 72 6f 6c |ailure. | Control|
|00001d80| 20 77 69 6c 6c 20 62 72 | 61 6e 63 68 20 74 6f 20 | will br|anch to |
|00001d90| 74 68 65 20 6d 6f 73 74 | 20 72 65 63 65 6e 74 0d |the most| recent.|
|00001da0| 20 20 20 20 20 20 20 20 | 65 78 63 65 70 74 69 6f | |exceptio|
|00001db0| 6e 20 68 61 6e 64 6c 65 | 72 2c 20 77 68 69 63 68 |n handle|r, which|
|00001dc0| 20 77 69 6c 6c 20 62 65 | 20 70 6f 70 70 65 64 20 | will be| popped |
|00001dd0| 6f 66 66 20 74 68 65 20 | 68 61 6e 64 6c 65 72 20 |off the |handler |
|00001de0| 73 74 61 63 6b 2e 20 2a | 2f 0d 0d 65 78 74 65 72 |stack. *|/..exter|
|00001df0| 6e 20 70 61 73 63 61 6c | 20 76 6f 69 64 20 46 61 |n pascal| void Fa|
|00001e00| 69 6c 4d 65 6d 45 72 72 | 6f 72 28 76 6f 69 64 29 |ilMemErr|or(void)|
|00001e10| 3b 0d 09 09 2f 2a 20 49 | 46 20 4d 65 6d 45 72 72 |;.../* I|F MemErr|
|00001e20| 6f 72 20 3c 3e 20 6e 6f | 45 72 72 20 54 48 45 4e |or <> no|Err THEN|
|00001e30| 20 46 61 69 6c 75 72 65 | 28 4d 65 6d 45 72 72 6f | Failure|(MemErro|
|00001e40| 72 2c 20 30 29 3b 20 49 | 66 20 79 6f 75 20 61 72 |r, 0); I|f you ar|
|00001e50| 65 20 75 73 69 6e 67 0d | 20 20 20 20 20 20 20 20 |e using.| |
|00001e60| 61 73 73 65 6d 62 6c 65 | 72 2c 20 74 68 65 6e 20 |assemble|r, then |
|00001e70| 79 6f 75 20 73 68 6f 75 | 6c 64 20 6a 75 73 74 20 |you shou|ld just |
|00001e80| 74 65 73 74 20 74 68 65 | 20 72 65 74 75 72 6e 20 |test the| return |
|00001e90| 63 6f 64 65 20 66 72 6f | 6d 20 74 68 65 20 4d 65 |code fro|m the Me|
|00001ea0| 6d 6f 72 79 0d 20 20 20 | 20 20 20 20 20 4d 61 6e |mory. | Man|
|00001eb0| 61 67 65 72 20 69 6e 20 | 44 4f 20 62 79 20 63 61 |ager in |DO by ca|
|00001ec0| 6c 6c 69 6e 67 20 46 61 | 69 6c 4f 53 45 72 72 2e |lling Fa|ilOSErr.|
|00001ed0| 20 28 53 65 65 20 74 68 | 65 20 64 69 73 63 75 73 | (See th|e discus|
|00001ee0| 73 69 6f 6e 20 6f 66 20 | 4d 65 6d 45 72 72 6f 72 |sion of |MemError|
|00001ef0| 20 69 6e 0d 20 20 20 20 | 20 20 20 20 49 6e 73 69 | in. | Insi|
|00001f00| 64 65 20 4d 61 63 69 6e | 74 6f 73 68 2e 29 20 2a |de Macin|tosh.) *|
|00001f10| 2f 0d 0d 65 78 74 65 72 | 6e 20 70 61 73 63 61 6c |/..exter|n pascal|
|00001f20| 20 76 6f 69 64 20 46 61 | 69 6c 52 65 73 45 72 72 | void Fa|ilResErr|
|00001f30| 6f 72 28 76 6f 69 64 29 | 3b 0d 09 09 2f 2a 20 49 |or(void)|;.../* I|
|00001f40| 46 20 52 65 73 45 72 72 | 6f 72 20 3c 3e 20 6e 6f |F ResErr|or <> no|
|00001f50| 45 72 72 20 54 48 45 4e | 20 46 61 69 6c 75 72 65 |Err THEN| Failure|
|00001f60| 28 52 65 73 45 72 72 6f | 72 2c 20 30 29 3b 20 28 |(ResErro|r, 0); (|
|00001f70| 53 65 65 20 49 6e 73 69 | 64 65 20 4d 61 63 69 6e |See Insi|de Macin|
|00001f80| 74 6f 73 68 2e 29 20 2a | 2f 0d 0d 65 78 74 65 72 |tosh.) *|/..exter|
|00001f90| 6e 20 70 61 73 63 61 6c | 20 76 6f 69 64 20 46 61 |n pascal| void Fa|
|00001fa0| 69 6c 4e 65 77 4d 65 73 | 73 61 67 65 28 73 68 6f |ilNewMes|sage(sho|
|00001fb0| 72 74 20 65 72 72 6f 72 | 2c 20 6c 6f 6e 67 20 6f |rt error|, long o|
|00001fc0| 6c 64 4d 65 73 73 61 67 | 65 2c 20 6c 6f 6e 67 20 |ldMessag|e, long |
|00001fd0| 6e 65 77 4d 65 73 73 61 | 67 65 29 3b 0d 09 09 2f |newMessa|ge);.../|
|00001fe0| 2a 20 54 68 69 73 20 64 | 6f 65 73 3a 0d 20 20 20 |* This d|oes:. |
|00001ff0| 20 20 20 20 20 49 46 20 | 6f 6c 64 4d 65 73 73 61 | IF |oldMessa|
|00002000| 67 65 20 3d 20 30 20 54 | 48 45 4e 0d 20 20 20 20 |ge = 0 T|HEN. |
|00002010| 20 20 20 20 20 20 20 20 | 46 61 69 6c 75 72 65 28 | |Failure(|
|00002020| 65 72 72 6f 72 2c 20 6e | 65 77 4d 65 73 73 61 67 |error, n|ewMessag|
|00002030| 65 29 0d 20 20 20 20 20 | 20 20 20 45 4c 53 45 0d |e). | ELSE.|
|00002040| 20 20 20 20 20 20 20 20 | 20 20 20 20 46 61 69 6c | | Fail|
|00002050| 75 72 65 28 65 72 72 6f | 72 2c 20 6f 6c 64 4d 65 |ure(erro|r, oldMe|
|00002060| 73 73 61 67 65 29 3b 0d | 20 20 20 20 20 20 20 20 |ssage);.| |
|00002070| 2a 2f 0d 0d 65 78 74 65 | 72 6e 20 70 61 73 63 61 |*/..exte|rn pasca|
|00002080| 6c 20 76 6f 69 64 20 46 | 61 69 6c 4e 49 4c 28 76 |l void F|ailNIL(v|
|00002090| 6f 69 64 20 2a 70 29 3b | 0d 09 09 2f 2a 20 43 61 |oid *p);|.../* Ca|
|000020a0| 6c 6c 20 74 68 69 73 20 | 77 69 74 68 20 61 20 70 |ll this |with a p|
|000020b0| 6f 69 6e 74 65 72 2f 68 | 61 6e 64 6c 65 3b 20 74 |ointer/h|andle; t|
|000020c0| 68 69 73 20 73 69 67 6e | 61 6c 73 20 46 61 69 6c |his sign|als Fail|
|000020d0| 75 72 65 28 6d 65 6d 46 | 75 6c 6c 45 72 72 2c 20 |ure(memF|ullErr, |
|000020e0| 30 29 20 69 66 20 70 20 | 69 73 20 4e 49 4c 2e 20 |0) if p |is NIL. |
|000020f0| 2a 2f 0d 0d 65 78 74 65 | 72 6e 20 70 61 73 63 61 |*/..exte|rn pasca|
|00002100| 6c 20 76 6f 69 64 20 46 | 61 69 6c 4e 49 4c 52 65 |l void F|ailNILRe|
|00002110| 73 6f 75 72 63 65 28 76 | 6f 69 64 20 2a 72 29 3b |source(v|oid *r);|
|00002120| 0d 09 09 2f 2a 20 43 61 | 6c 6c 20 74 68 69 73 20 |.../* Ca|ll this |
|00002130| 77 69 74 68 20 61 20 72 | 65 73 6f 75 72 63 65 20 |with a r|esource |
|00002140| 68 61 6e 64 6c 65 3b 20 | 74 68 69 73 20 73 69 67 |handle; |this sig|
|00002150| 6e 61 6c 73 20 46 61 69 | 6c 75 72 65 20 69 66 20 |nals Fai|lure if |
|00002160| 74 68 65 20 68 61 6e 64 | 6c 65 20 69 73 20 6e 69 |the hand|le is ni|
|00002170| 6c 2e 20 54 68 65 20 65 | 72 72 6f 72 20 69 73 0d |l. The e|rror is.|
|00002180| 20 20 20 20 20 20 20 20 | 65 69 74 68 65 72 20 74 | |either t|
|00002190| 68 61 74 20 72 65 74 75 | 72 6e 65 64 20 62 79 20 |hat retu|rned by |
|000021a0| 52 65 73 45 72 72 6f 72 | 2c 20 6f 72 20 72 65 73 |ResError|, or res|
|000021b0| 4e 6f 74 46 6f 75 6e 64 | 20 69 66 20 52 65 73 45 |NotFound| if ResE|
|000021c0| 72 72 6f 72 20 72 65 74 | 75 72 6e 73 20 6e 6f 20 |rror ret|urns no |
|000021d0| 65 72 72 6f 72 2e 20 2a | 2f 0d 0d 65 78 74 65 72 |error. *|/..exter|
|000021e0| 6e 20 70 61 73 63 61 6c | 20 76 6f 69 64 20 46 61 |n pascal| void Fa|
|000021f0| 69 6c 4f 53 45 72 72 28 | 73 68 6f 72 74 20 65 72 |ilOSErr(|short er|
|00002200| 72 6f 72 29 3b 0d 09 09 | 2f 2a 20 43 61 6c 6c 20 |ror);...|/* Call |
|00002210| 74 68 69 73 20 77 69 74 | 68 20 61 6e 20 4f 53 45 |this wit|h an OSE|
|00002220| 72 72 6f 72 3b 20 73 69 | 67 6e 61 6c 73 20 46 61 |rror; si|gnals Fa|
|00002230| 69 6c 75 72 65 28 65 72 | 72 6f 72 2c 20 30 29 20 |ilure(er|ror, 0) |
|00002240| 69 66 20 65 72 72 6f 72 | 20 3c 3e 20 6e 6f 45 72 |if error| <> noEr|
|00002250| 72 2e 20 2a 2f 0d 0d 65 | 78 74 65 72 6e 20 70 61 |r. */..e|xtern pa|
|00002260| 73 63 61 6c 20 42 6f 6f | 6c 65 61 6e 20 48 61 6e |scal Boo|lean Han|
|00002270| 64 6c 65 72 45 78 69 73 | 74 73 28 46 61 69 6c 49 |dlerExis|ts(FailI|
|00002280| 6e 66 6f 50 74 72 20 74 | 65 73 74 46 61 69 6c 49 |nfoPtr t|estFailI|
|00002290| 6e 66 6f 50 74 72 29 3b | 0d 09 09 2f 2a 20 54 68 |nfoPtr);|.../* Th|
|000022a0| 69 73 20 74 65 73 74 20 | 72 65 74 75 72 6e 73 20 |is test |returns |
|000022b0| 54 52 55 45 20 69 66 20 | 74 68 65 20 66 61 69 6c |TRUE if |the fail|
|000022c0| 75 72 65 20 68 61 6e 64 | 6c 65 72 20 65 78 69 73 |ure hand|ler exis|
|000022d0| 74 73 20 69 6e 20 74 68 | 65 20 73 74 61 63 6b 20 |ts in th|e stack |
|000022e0| 66 72 6f 6d 20 67 54 6f | 70 48 61 6e 64 6c 65 72 |from gTo|pHandler|
|000022f0| 0d 20 20 20 20 20 20 20 | 20 74 6f 20 74 68 65 20 |. | to the |
|00002300| 6f 75 74 65 72 6d 6f 73 | 74 20 68 61 6e 64 6c 65 |outermos|t handle|
|00002310| 72 2e 20 20 2a 2f 0d 0d | 65 78 74 65 72 6e 20 70 |r. */..|extern p|
|00002320| 61 73 63 61 6c 20 76 6f | 69 64 20 53 75 63 63 65 |ascal vo|id Succe|
|00002330| 73 73 28 46 61 69 6c 49 | 6e 66 6f 20 2a 66 69 29 |ss(FailI|nfo *fi)|
|00002340| 3b 0d 09 09 2f 2a 20 43 | 61 6c 6c 20 74 68 69 73 |;.../* C|all this|
|00002350| 20 77 68 65 6e 20 79 6f | 75 20 77 61 6e 74 20 74 | when yo|u want t|
|00002360| 6f 20 70 6f 70 20 79 6f | 75 72 20 65 78 63 65 70 |o pop yo|ur excep|
|00002370| 74 69 6f 6e 20 68 61 6e | 64 6c 65 72 2e 20 57 65 |tion han|dler. We|
|00002380| 20 61 73 73 75 6d 65 20 | 74 68 61 74 20 74 68 65 | assume |that the|
|00002390| 20 70 72 6f 67 72 61 6d | 6d 65 72 0d 09 09 20 20 | program|mer... |
|000023a0| 20 70 61 73 73 65 73 0d | 20 20 20 20 20 20 20 20 | passes.| |
|000023b0| 69 6e 20 74 68 65 20 6d | 6f 73 74 20 72 65 63 65 |in the m|ost rece|
|000023c0| 6e 74 20 46 61 69 6c 49 | 6e 66 6f 20 72 65 63 6f |nt FailI|nfo reco|
|000023d0| 72 64 3b 20 69 65 2e 20 | 74 68 65 20 6f 6e 65 20 |rd; ie. |the one |
|000023e0| 74 68 61 74 20 69 73 20 | 74 68 65 20 74 6f 70 20 |that is |the top |
|000023f0| 6f 66 20 74 68 65 20 73 | 74 61 63 6b 2e 20 49 66 |of the s|tack. If|
|00002400| 20 64 65 62 75 67 67 69 | 6e 67 0d 20 20 20 20 20 | debuggi|ng. |
|00002410| 20 20 20 69 73 20 6f 6e | 2c 20 77 65 20 63 68 65 | is on|, we che|
|00002420| 63 6b 20 74 6f 20 62 65 | 20 73 75 72 65 2e 20 2a |ck to be| sure. *|
|00002430| 2f 0d 23 65 6e 64 69 66 | 0d 0d 00 00 00 00 00 00 |/.#endif|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002480| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00002490| 7b 57 6f 72 6b 46 6f 6c | 64 65 72 7d 50 69 6e 6b |{WorkFol|der}Pink|
|000024a0| 3a 22 0d 53 65 74 20 50 | 69 6e 6b 49 6e 63 6c 75 |:".Set P|inkInclu|
|000024b0| 0c 55 4d 41 46 61 69 6c | 75 72 65 2e 68 6c 02 00 |.UMAFail|ure.hl..|
|000024c0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 01 80 |..TEXTMP|S ......|
|000024d0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 01 80 |..TEXTMP|S ......|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 a2 64 55 a2 00 00 | 00 00 00 00 01 ac 0d 45 |...dU...|.......E|
|00002500| 78 70 6f 72 74 20 50 69 | 6e 6b 46 6f 6c 64 65 72 |xport Pi|nkFolder|
|00002510| 0d 45 78 70 6f 72 74 20 | 50 69 6e 6b 49 6e 63 6c |.Export |PinkIncl|
|00002520| 75 64 65 73 0d 45 78 70 | 6f 72 74 20 50 69 6e 6b |udes.Exp|ort Pink|
|00002530| 4c 69 62 72 61 72 69 65 | 73 0d 6c 6c 6c 6c 6c 6c |Librarie|s.llllll|
|00002540| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00002550| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00002560| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00002570| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00002580| 00 00 00 1e 00 2a 00 05 | 01 d3 02 73 00 2a 00 05 |.....*..|...s.*..|
|00002590| 01 d3 02 73 00 00 00 00 | 00 00 00 00 00 00 00 00 |...s....|........|
|000025a0| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|000025b0| 00 94 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 14 00 01 | 00 06 00 04 00 2a 00 05 |........|.....*..|
|000025d0| 01 d3 02 5d 00 2a 00 05 | 01 d3 02 5d a2 3b 9d c0 |...].*..|...].;..|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|000025f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 34 |.....n..|.n...>.4|
|00002600| 5b 34 06 fc 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |[4......|.>..MPSR|
|00002610| 00 01 00 0a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00002620| 03 ed ff ff 00 00 00 22 | 00 36 4b 3c 00 00 00 00 |......."|.6K<....|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+